import java.io.IOException;

public class Deserializer {
    public static void main(String[] args) throws IOException {}

    public static int deserialize_int(int[] val){
        return val[0];
    }

    public static long deserialize_long(int[] val){
        return (((long) val[0]) << 32) | (val[1] & 0xFFFFFFFFL);
    }

    public static double deserialize_double(int[] val){
        return Double.longBitsToDouble(deserialize_long(val));
    }

    public static String deserialize_string(int[] val) {
        char[] b_val = new char[val.length * 4];

        for (int i = 0; i < val.length; i++) {
            b_val[i * 4]     = (char) ((val[i] & 0xFF000000L) >> 24);
            b_val[i * 4 + 1] = (char) ((val[i] & 0x00FF0000L) >> 16);
            b_val[i * 4 + 2] = (char) ((val[i] & 0x0000FF00L) >> 8);
            b_val[i * 4 + 3] = (char)  (val[i] & 0x000000FFL);
        }

        String s = "";

        if (b_val[0] <= 253) {
            for (char i = 1; i < b_val.length; i++) {
                if (b_val[i] != 0)
                    s += b_val[i];
            }
        } else {
            for (int i = 4; i < b_val.length; i++) {
                if (b_val[i] != 0)
                    s += b_val[i];
            }
        }

        return s;
    }
}
